import type { RouteRecordRaw } from 'vue-router'

const loginRouters: RouteRecordRaw = {
  path: '/login',
  component: () => import('@/views/login/index.vue'),
  redirect: '/login/enter',
  meta: { hideInMenu: true },
  children: [
    {
      path: '/login/enter',
      component: () => import('@/views/login/enter/index.vue'),
      meta: { title: 'login.login' }
    },
    {
      path: '/login/register',
      component: () => import('@/views/login/register/index.vue'),
      meta: { title: 'login.register' }
    },
    {
      path: '/login/forget-password',
      component: () => import('@/views/login/forget-password/index.vue'),
      meta: { title: 'login.forget-password' }
    },
    {
      path: '/login/code-login',
      component: () => import('@/views/login/code-login/index.vue'),
      meta: { title: 'login.code-login' }
    },
    {
      path: '/login/qrcode-login',
      component: () => import('@/views/login/qrcode-login/index.vue'),
      meta: { title: 'login.qrcode-login' }
    }
  ]
}

export default loginRouters
